`timescale 1ns / 1ps

module tast_top(
    input   wire            clk         ,
    input   wire            reset_n     ,
    input   wire            key_in      ,
                          
    output  wire            uart_tx
);

wire en_flag;

key_filter
#(
    .CNT_MAX (20'd24            ) //计数器计数最大值
)
key_filter_inst
(
    .sys_clk     (clk       ),   //系统时钟50Mhz
    .sys_rst_n   (reset_n   ),   //全局复位
    .key_in      (key_in    ),   //按键输入信号

    .key_flag    (en_flag   )    //key_flag为1时表示消抖后检测到按键被按下
);

uart_tx_test uart_tx_test_inst
(
    .clk         (clk       ),
    .reset_n     (reset_n   ),
    .en_flag     (en_flag   ),

    .angle_1_in  (12'd1500  ),
    .angle_2_in  (12'd1500  ),
    .angle_3_in  (12'd1500  ),
    .angle_4_in  (12'd1500  ),
    .angle_5_in  (12'd1500  ),
    .angle_6_in  (12'd1500  ),

    .uart_tx     (uart_tx   ),
    .trans_finish(          ) 
);

endmodule
